<div class='left'>
	<div class="category width-30 float-left">
		<?php $this->blkCategoryNews()?>
		<?php $this->blkAnswer()?>
		<?php $this->blkAdvertLeft()?>
	</div>
	<div class="content-left width-68 float-right">
		<?php 
			if($this->arrParam['tid'] == 152 && $this->arrParam['page'] == 1){
				include_once 'includes/members-manage.php';
			}
		?>
		<div class="group">
			<div class="sub-content color-blue"><?php echo $this->Title?></div>
				<?php
					$items = $this->Items;
					if(!empty($items)){
						foreach ($items as $key => $val){
							$title 		= $val['name'];
							$address 	= $val['address'];
							$phone 		= $val['phone'];
							$website 	= $val['website'];
							$repres 	= $val['repres'];
							$position 	= $val['position'];
							$position2 	= $val['position2'];
							
							if(!empty($val['picture'])){
		                    	$linkImg	= FILES_URL . '/news/images450x450/' . $val['picture'];
		                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$title.'" />';
		                    }else{
		                    	$linkImg	= $this->imgUrl . '/no-image.jpg';
		                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$title.'" />';
		                    }
		                    
							if(!empty($val['avatar'])){
		                    	$linkImg	= FILES_URL . '/news/images450x450/' . $val['avatar'];
		                    	$avatar 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$title.'" />';
		                    }else{
		                    	$linkImg	= $this->imgUrl . '/no-image.jpg';
		                    	$avatar 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$title.'" />';
		                    }
							
							$lang = $this->arrParam['lang'];
		                    if(empty($lang)){
		                    	$lang = 'vi';
		                    }else{
		                    	$lang = $this->arrParam['lang'];
		                    }
		                 	$urlOptions = array('module'=>'members','controller'=>'index',
														'action'=>'detail',
														'nname'=>$val['alias_name'],
														'title'=>$val['alias'],
		                    							'nid'=> $val['cat_id'],
														'id'=>$val['id'],
		                   								'lang'=>$lang);
		                   	$linkDetail = $this->url($urlOptions,'members-detail');
		                    
		                    $line = '<div class="line mar-top-10"></div>';
							
				?>
					<div class="box-cnt width-100 col-0">
		                 <div class="cnt">
		                      <div class="bor-img">
		                          <a style="border: 1px solid #ccc" target=_blank class='mar-btn-10 img-members' title="<?php echo $val['name']?>" href="http://<?php echo $website?>"><?php echo $picture?></a>
		                          <a style="border: 1px solid #ccc" target=_blank class='img-members' title="<?php echo $val['name']?>" href="http://<?php echo $website?>"><?php echo $avatar?></a>
		                      </div>
		                      <div class="desc">
		                          	<h1><a class='color-red' target=_blank title="<?php echo $val['name']?>" href="http://<?php echo $website?>"><?php echo $title?></a></h1>
		                          	<p><strong>Đại diện: </strong> <b class='color-blue'><?php echo $repres?></b></p>
		                          	<p><strong>Chức vụ trong công ty: </strong> <?php echo $position?></p>
		                          	<p><strong>Chức vụ trong hội: </strong> <?php echo $position2?></p>
		                          	<p><strong>Địa chỉ: </strong> <?php echo $address?></p>
	                          		<p><strong>Điện thoại: </strong> <?php echo $phone?></p>
	                          		<p><strong>Website: </strong><a class="color-blue underline" target=_blank href="http://<?php echo $website?>"><?php echo $website?></a></p>
		                          	<!-- <a title="<?php echo $val['name']?>" href="<?php echo $linkDetail?>" class="readmore">...Xem chi tiết</a> -->
		                      </div>
		                   </div>
		            </div>
					<?php echo $line ?>
					
				<?php }
				
					}else{
						echo '<div class="note-pro mar-top-10">Hiện tại tin tức đang được cập nhật....</div>';
					}
				?>
               	<div class="cur-page mar-top-10">
					<?php
				        	$paginator = $this->arrParam['paginator'];
							$itemCountPerPage = $paginator['itemCountPerPage'];
                        	if($this->total > $itemCountPerPage){
                        		$currentUrl = $this->baseUrl($this->currentController . '/index');
                        		echo $this->paginationControl($this->panigator,'Sliding','curentpage.phtml',array('currentUrl'=>$currentUrl,'arrParam'=>$this->arrParam));
                        	}
                    ?>
			    </div>
		</div>
	</div>
</div>